<template>
  <el-form :inline="true"
           :model="search"
           class="demo-form-inline">
    <el-form-item label="起点城市">
      <el-input v-model="search.address"
                placeholder="请输入起点城市"
                @input="input"></el-input>
    </el-form-item>
    <el-form-item label="单位类型">
      <el-select v-model="search.unitList"
                 multiple
                 collapse-tags
                 placeholder="请选择"
                 @input="input">
        <el-option v-for="item in options"
                   :key="item.value"
                   :label="item.label"
                   :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>
  </el-form>
</template>

<script>
import { options } from '../../options'

export default {
  name: 'CarrySearch',
  model: {
    prop: 'value',
    event: 'input'
  },
  props: {
    value: {
      type: Object,
      default: () => { }
    }
  },
  data () {
    return {
      // formInline: {},
      options: options
    }
  },
  mounted () {
  },
  methods: {
    input () {
      this.$emit('input', this.search)
    }
  }
}
</script>

<style>
</style>